package com.king.log4j2;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Log4j2 Test
 * @author taomk
 * @version 1.0
 * @since 15-10-15 上午11:05
 */
public class Log4j2Test {

	private static final Logger logger = LogManager.getLogger(Log4j2Test.class);

	public static void main(String[] args){
		if(logger.isTraceEnabled()){
			logger.debug("log4j2 trace message");
		}
		if(logger.isDebugEnabled()){
			logger.debug("log4j2 debug message");
		}
		if(logger.isInfoEnabled()){
			logger.debug("log4j2 info message");
		}
	}
}
